﻿using ChipPaster.DataAccess;
using ChipPaster.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChipPaster.Logic
{
    class StatisticsLogic
    {
        private readonly StatisticsDataAccess _userDataAccess;
        public StatisticsLogic()
        {
            _userDataAccess = new StatisticsDataAccess();
        }

        public void Add(Statistics record)
        {
            //Validation and logic
            _userDataAccess.Add(record);
        }
        public IEnumerable<Statistics> QueryByConditions(DateTime headTime,DateTime tailTime,string model)
        {
            return _userDataAccess.MyQuery(headTime, tailTime, model);
        }
    }
}
